<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>内置主题 | MyUI 4.x</title>
    <meta name="generator" content="VuePress 1.7.1">
    <link rel="icon" href="/my/favicon.ico">
    <script>
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?c4e5f73318b5cb0c389e3d9a05f831cc";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
    <meta name="description" content="MyUI是美亚柏科旗下新德汇出品的Web前端一站式项目工程框架，专注于公检法行业中台系统快速搭建，框架已在多个项目实战检验。">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
    
    <link rel="preload" href="/my/assets/css/0.styles.82a18d97.css" as="style"><link rel="preload" href="/my/assets/js/app.fc4964fc.js" as="script"><link rel="preload" href="/my/assets/js/513.edb84f11.js" as="script"><link rel="preload" href="/my/assets/js/1388.5d0d3d3f.js" as="script"><link rel="preload" href="/my/assets/js/958.935c6658.js" as="script">
    <link rel="stylesheet" href="/my/assets/css/0.styles.82a18d97.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/my/" class="home-link router-link-active"><img src="/my/img/logo.png" alt="MyUI 4.x" class="logo"> <span class="site-name can-hide">MyUI 4.x</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/my/guide/" class="nav-link router-link-active">
  指南
</a></div><div class="nav-item"><a href="/my/ui/components/" class="nav-link">
  组件
</a></div><div class="nav-item"><a href="/my/ui/charts/" class="nav-link">
  图表
</a></div><div class="nav-item"><a href="/my/ui/map/" class="nav-link">
  地图
</a></div><div class="nav-item"><a href="/my/ui/go/" class="nav-link">
  关系图
</a></div><div class="nav-item"><a href="/my/ui/icon/" class="nav-link">
  图标
</a></div><div class="nav-item"><a href="/my/ui/pages/" class="nav-link">
  页面
</a></div><div class="nav-item"><a href="http://newgateway.gitee.io/my-web/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  演示
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="JSDoc" class="dropdown-title"><span class="title">JSDoc</span> <span class="arrow down"></span></button> <button type="button" aria-label="JSDoc" class="mobile-dropdown-title"><span class="title">JSDoc</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/my/api/components.html" class="nav-link">
  基础组件
</a></li><li class="dropdown-item"><!----> <a href="/my/api/utils.html" class="nav-link">
  工具函数
</a></li><li class="dropdown-item"><!----> <a href="/my/api/charts.html" class="nav-link">
  图表组件
</a></li><li class="dropdown-item"><!----> <a href="/my/api/map.html" class="nav-link">
  地图组件
</a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/my/guide/" class="nav-link router-link-active">
  指南
</a></div><div class="nav-item"><a href="/my/ui/components/" class="nav-link">
  组件
</a></div><div class="nav-item"><a href="/my/ui/charts/" class="nav-link">
  图表
</a></div><div class="nav-item"><a href="/my/ui/map/" class="nav-link">
  地图
</a></div><div class="nav-item"><a href="/my/ui/go/" class="nav-link">
  关系图
</a></div><div class="nav-item"><a href="/my/ui/icon/" class="nav-link">
  图标
</a></div><div class="nav-item"><a href="/my/ui/pages/" class="nav-link">
  页面
</a></div><div class="nav-item"><a href="http://newgateway.gitee.io/my-web/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  演示
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="JSDoc" class="dropdown-title"><span class="title">JSDoc</span> <span class="arrow down"></span></button> <button type="button" aria-label="JSDoc" class="mobile-dropdown-title"><span class="title">JSDoc</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/my/api/components.html" class="nav-link">
  基础组件
</a></li><li class="dropdown-item"><!----> <a href="/my/api/utils.html" class="nav-link">
  工具函数
</a></li><li class="dropdown-item"><!----> <a href="/my/api/charts.html" class="nav-link">
  图表组件
</a></li><li class="dropdown-item"><!----> <a href="/my/api/map.html" class="nav-link">
  地图组件
</a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>开发指南</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>内置资源</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/my/guide/color.html" class="sidebar-link">色彩</a></li><li><a href="/my/guide/theme.html" aria-current="page" class="active sidebar-link">内置主题</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/my/guide/theme.html#通用配置" class="sidebar-link">通用配置</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/my/guide/theme.html#字体" class="sidebar-link">字体</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#行高" class="sidebar-link">行高</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#内边距" class="sidebar-link">内边距</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#圆角" class="sidebar-link">圆角</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#阴影" class="sidebar-link">阴影</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#边框" class="sidebar-link">边框</a></li></ul></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#默认主题配色" class="sidebar-link">默认主题配色</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/my/guide/theme.html#背景-前景色" class="sidebar-link">背景/前景色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#品牌色" class="sidebar-link">品牌色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#辅助色" class="sidebar-link">辅助色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#中性色" class="sidebar-link">中性色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#链接颜色" class="sidebar-link">链接颜色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#禁用颜色" class="sidebar-link">禁用颜色</a></li></ul></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#深色主题配色" class="sidebar-link">深色主题配色</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/my/guide/theme.html#背景-前景色-2" class="sidebar-link">背景/前景色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#品牌色-2" class="sidebar-link">品牌色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#辅助色-2" class="sidebar-link">辅助色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#中性色-2" class="sidebar-link">中性色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#链接颜色-2" class="sidebar-link">链接颜色</a></li><li class="sidebar-sub-header"><a href="/my/guide/theme.html#禁用颜色-2" class="sidebar-link">禁用颜色</a></li></ul></li></ul></li><li><a href="/my/guide/vars.html" class="sidebar-link">主题变量</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>进阶教程</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>第三方类库</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="内置主题"><a href="#内置主题" class="header-anchor">#</a> 内置主题</h1> <p>MyWeb 4.x 的样式是用SCSS预处理，内置了一套变量。原则上在开发过程只允许使用内置的变量，不建议另起变量名，便于实现主题在线切换功能。
如需定制主题，只需重新给变量赋值即可。</p> <h2 id="通用配置"><a href="#通用配置" class="header-anchor">#</a> 通用配置</h2> <p>通用配置是经过实践得出最合适的规范，建议任何主题都应该遵从。</p> <h3 id="字体"><a href="#字体" class="header-anchor">#</a> 字体</h3> <!----><h3 id="行高"><a href="#行高" class="header-anchor">#</a> 行高</h3> <!----><h3 id="内边距"><a href="#内边距" class="header-anchor">#</a> 内边距</h3> <!----><h3 id="圆角"><a href="#圆角" class="header-anchor">#</a> 圆角</h3> <!----><h3 id="阴影"><a href="#阴影" class="header-anchor">#</a> 阴影</h3> <!----><h3 id="边框"><a href="#边框" class="header-anchor">#</a> 边框</h3> <!----><h2 id="默认主题配色"><a href="#默认主题配色" class="header-anchor">#</a> 默认主题配色</h2> <h3 id="背景-前景色"><a href="#背景-前景色" class="header-anchor">#</a> 背景/前景色</h3> <!----><h3 id="品牌色"><a href="#品牌色" class="header-anchor">#</a> 品牌色</h3> <!----><h3 id="辅助色"><a href="#辅助色" class="header-anchor">#</a> 辅助色</h3> <!----><h3 id="中性色"><a href="#中性色" class="header-anchor">#</a> 中性色</h3> <!----><h3 id="链接颜色"><a href="#链接颜色" class="header-anchor">#</a> 链接颜色</h3> <!----><h3 id="禁用颜色"><a href="#禁用颜色" class="header-anchor">#</a> 禁用颜色</h3> <!----><h2 id="深色主题配色"><a href="#深色主题配色" class="header-anchor">#</a> 深色主题配色</h2> <h3 id="背景-前景色-2"><a href="#背景-前景色-2" class="header-anchor">#</a> 背景/前景色</h3> <!----><h3 id="品牌色-2"><a href="#品牌色-2" class="header-anchor">#</a> 品牌色</h3> <!----><h3 id="辅助色-2"><a href="#辅助色-2" class="header-anchor">#</a> 辅助色</h3> <!----><h3 id="中性色-2"><a href="#中性色-2" class="header-anchor">#</a> 中性色</h3> <!----><h3 id="链接颜色-2"><a href="#链接颜色-2" class="header-anchor">#</a> 链接颜色</h3> <!----><h3 id="禁用颜色-2"><a href="#禁用颜色-2" class="header-anchor">#</a> 禁用颜色</h3> <!----></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev">
      ←
      <a href="/my/guide/color.html" class="prev">
        色彩
      </a></span> <span class="next"><a href="/my/guide/vars.html">
        主题变量
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"></div></div>
    <script src="/my/assets/js/app.fc4964fc.js" defer></script><script src="/my/assets/js/513.edb84f11.js" defer></script><script src="/my/assets/js/1388.5d0d3d3f.js" defer></script><script src="/my/assets/js/958.935c6658.js" defer></script>
  </body>
</html>
